/*
 * Component.java
 * 
 * This file is part of Netuno Proteu.
 * 
 * CajuScript is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3, or (at your option) 
 * any later version.
 * 
 * CajuScript is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with CajuScript.  If not, see <http://www.gnu.org/licenses/>.
*/

package org.netuno.proteu.com;

/**
 * Component
 * @author eduveks
 */
public interface Component {
    /**
     * Separator
     */
    public static final String SEPARATOR = "[~]";
    
    /**
     * Add
     * @param component Component
     */
    public void parent(Component component);

    /**
     * Next
     * @return Loop to next
     */
    public boolean next();

    /**
     * Build
     */
    public void close();
    
    /**
     * Set Type
     * @param type Type
     */
    public void setType(String type);
    
    /**
     * Get Type
     * @return Type
     */
    public String getType();
    
    /**
     * Set Description
     * @param description Description
     */
    public void setDescription(String description);
    
    /**
     * Get Description
     * @return Description
     */
    public String getDescription();
}
